package com.background.dao;

import com.background.dao.mapper.AdWebsitesMapper;
import com.background.model.AdWebsites;
import com.background.model.AdWebsitesExample;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by helloworld on 17-3-17.
 */
@Repository
public class WebLinkDao implements IWebLinkDao {
    @Autowired
    private AdWebsitesMapper adWebsitesMapper;
    @Override
    public List<AdWebsites> findAllAdWebSites() {
        AdWebsitesExample adWebsitesExample = new AdWebsitesExample();
        AdWebsitesExample.Criteria criteria = adWebsitesExample.createCriteria();

        return adWebsitesMapper.selectByExample(adWebsitesExample);
    }

    @Override
    public void updateAdWebSitesPrimaryKey(int id) {

    }
}
